package com.isunland.managesystem.utils;

/**
 * @author wangyanan email:ynwang2015@126.com
 * @ClassName: BtnClickUtil
 * @Description: 点击类
 * @date 2016年1月20日
 */
public class BtnClickUtil {

  private static long mLastClickTime = 0;

  /**
   * @return boolean 是否重复点击.
   * @Title: isFastDoubleClick
   * @Description: 按钮重复点击
   */
  public static boolean isFastDoubleClick() {
    long time = System.currentTimeMillis();
    long timeD = time - mLastClickTime;
    if (0 < timeD && timeD < 1000) {
      return true;
    }

    mLastClickTime = time;

    return false;
  }
}
